const mysql = require('mysql2')

const db = mysql.createConnection({
    host: '81.70.56.97',
    user: 'root',
    password: 'WFYhmh214..',
    port: '13306',
    database: 'uniapp'
})

db.connect((err) => {
    if (err) return console.log('数据库连接错误');
    console.log('数据库连接成功')
})
module.exports = db